import groovy.text.SimpleTemplateEngine

def text = 'This Tutorial focuses on $TutorialName. In this tutorial you will learn about $Topic'

def binding = ["TutorialName":"Groovy", "Topic": "Templates Engine"]
def engine = new SimpleTemplateEngine()
def template = engine.createTemplate(text).make(binding)

println template